<?php
include '../template/template_main.tpl';
require("../connect/connect.php");

if(isset($_SESSION["profile"])){
	switch($_SESSION["profile"]){
		case 2: break;
		default: header("Location: index.php");
	}
}
else
header("Location: comoFazerLogin.php");
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
	"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>

<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link rel="stylesheet" type="text/css" href="../css/template.css" />
<link rel="stylesheet" type="text/css" href="../css/corpo_main.css" />
<link rel="stylesheet" type="text/css" href="../css/dock.css" />
<link rel="stylesheet" type="text/css" href="../css/dropdown.css" />
<script type="text/javascript" src="../js/jquery-1.7.2.js"></script>
<script type="text/javascript" src="../js/main.js"></script>
<script type="text/javascript" src="../js/dropdown.js"></script>
<title>.:MateMatrix:.</title>

</head>
<body>
<?php makeHeader(); ?>
<?php echo $estruturaInicio;?>
<div id="title">
<h1>- Admin backoffice -</h1>
</div>

<dl class="dropdown">
	<dt id="one-ddheader" onmouseover="ddMenu('one',1)"
		onmouseout="ddMenu('one',-1)">Equipas</dt>
	<dd id="one-ddcontent" onmouseover="cancelHide('one')"
		onmouseout="ddMenu('one',-1)">
	<ul>
		<li><a href="#" class="underline">Procurar Equipas</a></li>
		<li><a href="../publico/listTeams.php" class="underline">Listar activas</a></li>
		<li><a href="../admin/listInactive.php">Listar inactivas</a></li>
	</ul>
	</dd>
</dl>
<dl class="dropdown">
	<dt id="three-ddheader" onmouseover="ddMenu('three',1)"
		onmouseout="ddMenu('three',-1)">Problemas</dt>
	<dd id="three-ddcontent" onmouseover="cancelHide('three')"
		onmouseout="ddMenu('three',-1)">
	<ul>
		<li><a href="corrigirRespostas.php" class="underline">Corrigir Resposta</a></li>
		<li><a href="addProb.php" class="underline">Criar Problema</a></li>
		<li><a href="../publico/listProbs.php">Listar Problemas</a></li>
	</ul>
	</dd>
</dl>
<dl class="dropdown">
	<dt id="four-ddheader" onmouseover="ddMenu('four',1)"
		onmouseout="ddMenu('four',-1)">Épocas</dt>
	<dd id="four-ddcontent" onmouseover="cancelHide('four')"
		onmouseout="ddMenu('four',-1)">
	<ul>
		<li><a href="criarEpoca.php" class="underline">Criar época</a></li>
		<li><a href="listaEpocas.php" class="underline">Editar época</a></li>
		<li><a href="editReg.php" class="underline">Editar regulamento</a></li>
		<li><a href="#">Adicionar jornada</a></li>
	</ul>
	</dd>
</dl>
<dl class="dropdown">
	<dt id="five-ddheader" onmouseover="ddMenu('five',1)"
		onmouseout="ddMenu('five',-1)">Anúncios</dt>
	<dd id="five-ddcontent" onmouseover="cancelHide('five')"
		onmouseout="ddMenu('five',-1)">
	<ul>
		<li><a href="criarAnuncio.php" class="underline">Criar anúncio</a></li>
		<li><a href="listaAnuncios.php" class="underline">Editar anúncio</a></li>
		<li><a href="editAnuncioOmissao.php">Gerir anúncio por omissão</a></li>
	</ul>
	</dd>
</dl>


<!--
19. Consultar topicos privados e publicos
21. Converter topicos privados em topicos publicos
-->

<?php echo $estruturaFim; ?>
<?php echo $footer;?>
</body>
</html>
